﻿// this creates the <comment-list></comment-list> Directive as an HTML extension for Comments
commentsApp.directive('commentList', [
  function () {
      return {
          restrict: 'E',
          scope: {
              contentId: '=',
              contentTitle: '='
          },
          templateUrl: 'CommentForm.html',
          controller: 'CommentController',
          controllerAs: 'comments'
      };
  }]);